<?php
		require("../dbconnect.php");
		require("../function.php");

		$field=$_GET["field"];
		$value=$_GET["value"];
		$showName=$_GET["showName"];
		
		$chk=mysql_query("select * from os_member where email='$value'")or die(mysql_error());
		
		if(mysql_num_rows($chk)==0)
		{
			echo "<div class='dw_info'>No member has register with this email account</div>";
		}
		else
		{
			echo "<div class='dw_info'>This email account is registered to ".mysql_result($chk,0,"name").", IC Number - ".mysql_result($chk,0,"icnumber")." </div>";
			echo "<img src='images/loadscript.gif' onload='updateMemberCard(\"".mysql_result($chk,0,"member_card_number")."\")'>";	
		}
		
?>